$.ajax({
    url:"./php/paihang.php",
    dataType:'json',
    success:function(res){
        let str=''
        res.forEach(elem => {
            str+=`
            <li class="paihang">
                         <div class="rank-lin flex">
                            <div class="comico ico-rank">${elem.id}</div>
                            <div class="djimg fl">
                                <img src="${elem.img}" width="76" height="76" alt="腥红之月 烬">
                            </div>
                            <div class="djinfo fr">
                                <p class="djname">${elem.name}</p>
                                <p class="djprice">Q币价：${elem.qprice} Q币</p>
                                <p class="djcpri" style="font-size:12px;">微信价：<strong>￥${elem.vprice} </strong></p>
                            </div>
                         </div>
                      </li>
            `
        });
        $('.viewbuy-box').append(str)
    }
})
$.ajax({
    url:"./php/xiang.php",
    dataType:'json',
    success:function(res){
        console.log(res)
        let str=''
        res.forEach(elem => {
            str+=`
            <dl>
            <dt>
                 <a href="/lol/item/26944.shtml" target="_blank">
                    <img src="${elem.img}" width="116" height="212" alt="正义之枪 卢锡安">
                </a>
            </dt>
            <dd>
                <a href="/lol/item/26944.shtml" class="djname" target="_blank"><strong>${elem.name}</strong></a>
                 <div class="bxlist-t1">
                    Q币价：<span class="t2 fwb">&nbsp;&nbsp;&nbsp;</span><span class="t2 fwb">${elem.qprice}</span><span class="t2 fwb"> Q币</span>
                </div>
                <div class="bxlist-t1">
                    微信价：<span class="t2 fwb">&nbsp;&nbsp;&nbsp;￥${elem.vprice}</span>
                </div>
                 <div class="bxlist-t2 c">
                    <a href="javascript:;" data-seqid="26944" class="btn-green buy-now btn_list_goodslist_buy" title="立即购买">立即购买</a>
                </div>
                
            </dd>
        </dl>
            `
        });
        $('.listbox-a').append(str)
    }
})
